#include <dirent.h>
#include <stdio.h>

int main(int argc, char *argv[]) 
{
    DIR *dir = opendir(argv[1]);
    struct dirent *entry;
    
    while ((entry = readdir(dir)) != NULL) 
    {
        printf("filename: %s, Inode: %lu\n", 
               entry->d_name, 
               (unsigned long)entry->d_ino);
    }
    
    closedir(dir);
    return 0;
}
